/*
 * Copyright 2010 - 2011, The PLDesktop Development Team
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License as published by the Free Software Foundation; either
 *  version 2.1 of the License, or (at your option) any later version.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 *
 */
#ifndef PLTYPES_H
#define PLTYPES_H

namespace PLSDK {

    /**
     * A bool type.
     */
    typedef bool                        plbool;
    /**
     * A byte type.
     */
    typedef unsigned char               plbyte;
    /**
     * A unsigned char type.
     */
    typedef unsigned char               pluchar;
    /**
     * A unsigned short type.
     */
    typedef unsigned short              plushort;
    /**
     * A unsigned int type.
     */
    typedef unsigned int                pluint;
    /**
     * A unsigned long type.
     */
    typedef unsigned long               plulong;
    /**
     * A long long type.
     */
    typedef long long                   plllong;
    /**
     * A 8 bit type.
     */
    typedef signed char                 plint8;
    /**
     * A 8 bit unsigned type.
     */
    typedef unsigned char				pluint8;
    /**
     * A 16 bit type.
     */
    typedef short                       plint16;
    /**
     * A 16 bit unsigned type.
     */
    typedef unsigned short              pluint16;
    /**
     * A 32 bit type.
     */
    typedef int                         plint32;
    /**
     * A 32 bit unsigned type.
     */
    typedef unsigned int                pluint32;
    /**
     * A 64 bit type.
     */
    typedef long long                   plint64;
    /**
     * A 64 bit unsigned type.
     */
    typedef unsigned long long          pluint64;
    /**
     * A real type.
     */
    typedef double                      plreal;
    /**
     * A unicode type.
     */
    typedef pluint32                    plunicode;

#if defined(WITH_WCHAR_STRING)
#if !defined(PSIZEOFWCHAR)
#  if __SIZEOF_WCHAR_T__ == 4 || __WCHAR_MAX__ > 0x10000
/**
 * Size of the wchar to detect the encoding in it.
 *
 * @ingroup lang
 */
#    define PSIZEOFWCHAR 4
#  else
/**
 * Size of the wchar to detect the encoding in it.
 *
 * @ingroup lang
 */
#    define PSIZEOFWCHAR 2
#  endif
#endif
#endif

}

#endif
